-- GENERATED SPELL FOR [Underbog Lord] --


function spell0_17734(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_17734', 593, 1)
end

function spell1_17734(pUnit, Event) --@Fungal Decay,n/a--
pUnit:FullCastSpellOnTarget(32065,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17734', 18000, 1)
end

function spell2_17734(pUnit, Event) --@Growth,Self--
pUnit:FullCastSpellOnTarget(40318,pUnit)
pUnit:RegisterEvent('Sorts_17734', 660, 1)
end

function spell3_17734(pUnit, Event) --@Knock Away,n/a--
pUnit:FullCastSpellOnTarget(25778,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17734', 637, 1)
end

function Sorts_17734(pUnit, Event)
local choix_sorts_17734 = math.random(0, 3)
if choix_sorts_17734 == 0 then
pUnit:RegisterEvent('spell0_17734', 1, 1)
end
if choix_sorts_17734 == 1 then
pUnit:RegisterEvent('spell1_17734', 1, 1)
end
if choix_sorts_17734 == 2 then
pUnit:RegisterEvent('spell2_17734', 1, 1)
end
if choix_sorts_17734 == 3 then
pUnit:RegisterEvent('spell3_17734', 1, 1)
end
end

function mob17734_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17734', math.random(1500, 3000), 1)
end

function mob17734_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17734_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17734_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17734, 1, 'mob17734_Action')
RegisterUnitEvent(17734, 2, 'mob17734_Leave')
RegisterUnitEvent(17734, 3, 'mob17734_Kill')
RegisterUnitEvent(17734, 4, 'mob17734_Die')
